package com.qst.crop.dao;

import com.qst.crop.entity.Knowledge;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

///知识
@Component
public interface KnowledgeDao {
    List<Knowledge> selectAll();

    Knowledge selectByPrimaryKey(Integer id);

    List<Knowledge> selectAllByKeys(String keys);

    void insertSelective(Knowledge knowledge);

    void updateByPrimaryKeySelective(Knowledge knowledge);

    void deleteByPrimaryKey(Integer id);

    List<Knowledge> selectByExample(@Param("ownName") String name);
}
